﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClassLibrary.BLL
{
    public class BLLChiTietDH
    {
        private int iddh;
        public int IDDH
        {
            get { return iddh; }
            set { iddh = value; }
        }
        private int idsp;
        public int IDSP
        {
            get { return idsp; }
            set { idsp = value; }
        }
        private int soluong;
        public int SoLuong
        {
            get { return soluong; }
            set { soluong = value; }
        }
        private decimal dongia;
        public decimal DonGia
        {
            get { return dongia; }
            set { dongia = value; }
        }
        private decimal thanhtien;
        public decimal ThanhTien
        {
            get { return thanhtien; }
            set { thanhtien = SoLuong * DonGia; }
        }
        public BLLChiTietDH(int _iddh, int _idsp, int _soluong, int _dongia, decimal _thanhtien)
        {
            IDDH=_iddh;
            IDSP=_idsp;
            SoLuong=_soluong;
            DonGia=_dongia;
            thanhtien=_thanhtien;
        }
    }
}
